package ddz;

import org.apache.commons.lang3.StringUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class StringDemo {

	@Before
	public void before(){
		System.out.println("\n########################################\n测试输出 before\n");
	}

	@After
	public void after(){
		System.out.println("\n测试输出 after\n####################################\n");
	}


	/**
	 * 为空
	 */
	@Test
	public void isEmptyTest(){
		String str = "test";
		boolean result = StringUtils.isEmpty(str);
		System.out.println(result);
	}

	/**
	 * 不为空
	 */
	@Test
	public void isNotEmptyTest(){
		System.out.println("方法 : " + "StringUtils.isNotEmpty(String str)");
		String str = "test";
		boolean result = StringUtils.isNotEmpty(str);
		System.out.println("结果 : " + result);
	}

}
